package cn.com.dcsgo.springcloudstudy.payment.service;

import cn.com.dcsgo.springcloudstudy.commons.pojo.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * @author DCSGO
 * @version 1.0
 */
public interface PaymentService {
    /**
     * 创建订单
     * @param payment 订单
     * @return 订单id
     */
    long create(Payment payment);

    Payment queryById(@Param("id") long id);
}
